using System.Collections.Generic;

namespace Sinacor.Servico.Bovespa.ContasCorrente.Service.ServiceImplementation.Translator.DataContractToBusinessEntity 
{
	public class ContaCorrente 
    {
		public ContaCorrente(){}

		public List<BusinessEntity.Parameter.FiltroHistoricoContaCorrente> ToFiltroHistoricoContaCorrente(List<DataContract.Request.FiltroHistoricoContaCorrenteRequest> requestList)
        {
            List<BusinessEntity.Parameter.FiltroHistoricoContaCorrente> to = new List<BusinessEntity.Parameter.FiltroHistoricoContaCorrente>();

            foreach (DataContract.Request.FiltroHistoricoContaCorrenteRequest item in requestList)
            {
                to.Add(ToFiltroHistoricoContaCorrente(item));
            }

            return to; 
		}

		public BusinessEntity.Parameter.FiltroHistoricoContaCorrente ToFiltroHistoricoContaCorrente(DataContract.Request.FiltroHistoricoContaCorrenteRequest request)
        {
            BusinessEntity.Parameter.FiltroHistoricoContaCorrente to = new Sinacor.Servico.Bovespa.ContasCorrente.BusinessEntity.Parameter.FiltroHistoricoContaCorrente();

            to.Codigo = request.Codigo;
            to.Descricao = request.Descricao;
            to.DiasProjecao = request.DiasProjecao;
            to.Tipo = request.Tipo;
            to.CodigoSistema = request.CodigoSistema;
            return to;
		}
	}
}